package hu.issue.framework.web.validation;

public class IntegerValidator extends NotRequiredValidator {

	public IntegerValidator(final String parameterName, final String message) {
		super(parameterName, message);
	}

	@Override
	protected boolean validateValueInner(final String value) {
		try {
			Integer.parseInt(value);
			return true;
		} catch (final Exception ex) {
			return false;
		}
	}

}
